package com.example.canal.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @PROJECT_NAME: canal
 * @DESCRIPTION:
 * @USER: taik
 * @DATE: 2023/2/18 0:57
 */
@Document(indexName="order",type = "docs")
@Data
public class Order implements Serializable {

    private static final long serialVersionUID = 3438741910528707307L;
    @Id
    private int orderId;
    private int userId;
    private BigDecimal price;
    private String status;
}
